package day01.text01;

//定义MyRunnable实现Runable方法
public class MyRunnable implements Runnable{

    @Override
    public void run() {
        //重新run()方法循环20次
        for (int i = 1; i <= 20; i++) {
            System.out.println(Thread.currentThread().getName()+MyThread.currentThread().getName()+"线程,执行第"+i+"次");
        }
    }
}
